<template>
	<view class="box">
		<view class="title">{{title}}</view>
		<view class="time">{{time}}</view>
		<rich-text :nodes="nodes"></rich-text>
	</view>
</template>

<script>
	
	import {
		message_details
	} from '@/common/http/api.js'
	export default {
		data() {
			return {
				title:'',
				nodes: '',
				time:'',
			};
		},
		onLoad(e) {
			this.id = e.id
			message_details({
				id: e.id
			}).then(res => {
				this.time=res.data.add_time
				this.title=res.data.title
				this.nodes = res.data.content
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.title{
		font-size: 32rpx;
		font-weight: bold;
		width: 100%;
		text-align: center;
	}
	.time{
		font-size: 22rpx;
		font-weight: 400;
		width: 100%;
		text-align: right;
		color: #999999;
		margin-top: 20rpx;
	}
	.box {
		width: 100%;
		box-sizing: border-box;
		padding: 24rpx;
	}
	#video {
		width: 100%;
		margin-top: 20rpx;
		margin-bottom: 30rpx;
	}
</style>